#include "imageloadthread.h"
#include "imageinstance.h"

void ImageLoadThread::run()
{
    abort = false;
    foreach (QString file, imageFiles) {
        ImageInstance *image = new ImageInstance(file);
        if (abort) {
            delete image;
            break;
        } else {
            emit resultReady(image);
        }
    }
}
